"""
URL map for the Map application.
"""

from django.conf.urls.defaults import *
from django.conf import settings
from os import path

coord = r'-?\d+(\.\d{1,})?'

urlpatterns = patterns('',
  (r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'map/index.html'}),

  (r'^ajax/services/$', 'map.ajax.services'),

  (r'^show/(?P<service>[a-z0-9]+)/(?P<x>' + coord + r')/(?P<y>' + coord + r')/(?P<z>\d+)/$', 'map.views.show'),
  (r'^get/(?P<service>[a-z0-9]+)/(?P<xSize>[0-9]+)/(?P<ySize>[0-9]+)/(?P<x>' + coord + r')/(?P<y>' + coord + r')/(?P<z>\d+)/$', 'map.views.get'),
)
